{html}

<script language="javascript">
$(function(){
  // change page to ajax_page in pagination urls
  $('#pagination a').each(function(){
    var href = $(this).attr('href');
    href = href.replace(/search_result_page/,'get_search_product_paging');
    $(this).attr('href',href);
  });
  // ajax request
  $('#pagination a').click(function(){
    $('.loading').show();
    $.ajax({
       type: "GET",
       url: $(this).attr('href'),
       success: function(table){
          //$('#content-div').remove(); // remove content
          $('#content').html(table); // add content
            $('.loading').hide();
       }
    });

    return false; // don't let the link reload the page
  });
});
</script>